Class LocalUser
Bildet einen User für die save.json ab
Inheritance
System.Object
LocalUser
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sokoban.Model
Assembly: Sokoban.dll
Syntax
public class LocalUser
Constructors
LocalUser(String)
Konstruktor, um einen User mit Namen zu erzeugen
Declaration
public LocalUser(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Wie heißt du? |
Properties
Level
Momentan erreichtes Level
Declaration
[JsonIgnore]
public int Level { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Name
Username
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Points
Erreichte Punkte (je Level)
Declaration
[JsonProperty("points")]
public List<int> Points { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Int32> |
Methods
AsUserList()
Hilfsmethode, die den LocalUser in eine Liste mit Usern umwandelt.
Declaration
public List<User> AsUserList()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<User> |